package com.government.member.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.government.common.core.domain.BaseEntity;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户会员卡对象 t_vip
 *
 * @author system
 * @date 2023-09-18
 */
@TableName("t_vip_order")
@Data
public class VipOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 对应user_id */
    @TableId(type = IdType.AUTO )
    private Long orderId;

    /** 订单号 */
    private String orderCode;

    /** 订单状态 0未支付 1已支付 2已关闭*/
    private int orderStatus;

    /** 支付状态 0未支付 1已支付 */
    private int payStatus;

    /** vip类型 1-vip 2-svip 3-企业vip*/
    private int vipType;


    private String vipName;

    private Long userId;

    private BigDecimal goodsAmount;

    private BigDecimal orderPayAmount;

    private int payTypeId;

    private String payName;

    private BigDecimal paySuccessAmount;

    private Date payTime;

    @TableField(exist = false)
    private String payTimeStr;

    private String payUrl;

    private String outTradeNo;

    private String transactionId;

    private String tradeType;

    private Long vipInfoId;

    /** 有效时间 */
    private int time;

    /** 时间单位 */
    private String timeUnit;
}
